package com.xxh.blog.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxh.blog.entity.vo.EssayVo;
import com.xxh.blog.mq.PostMqMessage;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("SearchService")
public interface SearchService {
    IPage search(Page page,String keyword);

    int initEsDate(List<EssayVo> records);

    void creatOrUpdateIndex(PostMqMessage message);

    void removeIndex(PostMqMessage message);
}
